package com.example.myblog1_0.service;

import com.example.myblog1_0.model.LeaveMessage;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Service;

/**
 * @Author: xc
 * @Date: 2018/12/22 14:26
 * @Description:
 **/
@Service
public interface LeaveMessageService {
    /**
     * 储存留言
     * @return
     */
    JSONObject saveMessage(LeaveMessage leaveMessage);

    /**
     * 返回所有留言
     * @return
     */
    JSONObject findAllMessage(int row,int pageNum);
}
